//
//  Operation.h
//  Tables
//
//  Created by mathias Muller on 8/23/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface Operation : NSObject {
    NSInteger leftValue;
	NSInteger rightValue;
	NSString * operator;
	NSInteger result;
}
@property (assign, nonatomic) NSInteger leftValue;
@property (assign, nonatomic) NSInteger rightValue;
@property (copy, nonatomic) NSString *operator;
@property (assign, nonatomic) NSInteger result;

+(Operation *) newOperation:(NSString*)op left:(NSInteger)l right:(NSInteger)r;
- (NSInteger)getResult;
- (BOOL)isCorrect;
- (NSString *)toString;
@end
